<?php
include_once("functions/db_manipulate.php");

if (!init()) {
    redirect("login.php");
    exit();
}

?>
<meta charset="UTF-8">
<?php

$usersResultSet = getBlockedUsers();

?>

<div class="userscontent">
    <div class="blockheader">
        Все пользователи
    </div>

    <?php
    while ($user = mysql_fetch_assoc($usersResultSet)) {
        ?>
        <div class="user" onclick="location.href='../profile.php?uid=<?= $user['id'] ?>'">
            <div class="usertd">
                <?= $user['nick'] ?>
            </div>
            <div class="usertd">
                <?= $user['registered'] ?>
            </div>
            <div class="usertd">
                <?= $user['email'] ?>
            </div>

        </div>
        <div class="blockuserbutton" onclick="location.href='free_user.php?uid=<?= $user['id'] ?>'">
            Разблокировать
        </div>
    <?
    }
    ?>

</div>

